package ClimateControlProcessor.ClimateObjects;

import ClimateControlProcessor.ClimateObjects.Constant.FANDIRECTION;
import ClimateControlProcessor.ClimateObjects.Constant.MODE;

public class CurrentVehicleStatus {
	public BlowerMotor currBlowMotor;
	public ComClutch currComClutch;
	public MonoValve currMonoValve;
	public Temperature currTemp;
	public MODE Mode;
	public FANDIRECTION airDirection;
	
	public CurrentVehicleStatus()
	{
		currBlowMotor = new BlowerMotor();
		currComClutch = new ComClutch();
		currMonoValve = new MonoValve();
		currTemp = new Temperature();
		Mode = MODE.Manual;
		airDirection = FANDIRECTION.HeadNFoot;
	}
	
	public Boolean isNotNull(){
		if(this == null)
			return false;
		return true;
	}	

	public static void copyObject(CurrentVehicleStatus object){
		Constant.currentDebugACConfig= new CurrentVehicleStatus();
		Constant.currentDebugACConfig.currBlowMotor = new BlowerMotor();
		Constant.currentDebugACConfig.currBlowMotor.setCurrentSpeed(object.currBlowMotor.getCurrentSpeed());		
		Constant.currentDebugACConfig.currComClutch= new ComClutch(); 
		Constant.currentDebugACConfig.currComClutch.setStatus(object.currComClutch.getStatus());
		Constant.currentDebugACConfig.currMonoValve= new MonoValve(); 
		Constant.currentDebugACConfig.currMonoValve.setExpandedValue(object.currMonoValve.getExpandedValue()); 
		Constant.currentDebugACConfig.currTemp= new Temperature(); 
		Constant.currentDebugACConfig.currTemp.setCurrentTemp(object.currTemp.getCurrentTemp());		
		Constant.currentDebugACConfig.Mode= object.Mode; 
		Constant.currentDebugACConfig.airDirection= object.airDirection;	
	}
}
